package com.stn.zjx.givingtreasure.event;

import java.util.Date;

/**
 * Created by 朱俊鑫 on 2018
 * 网络状态事件
 * @author 朱俊鑫
 * @since 2018-3
 * @property netWorkType 网络状态
 * @property netWorkName 网络状态英文名称
 * @property date 得到事件，的时间
 */

public class NetWorkEvent implements java.io.Serializable{

     //网络状态
    private  int netWorkType=0;
    //网络状态英文名称
    private String netWorkName="";

    public NetWorkEvent(int netWorkType, String netWorkName) {
        this.netWorkType = netWorkType;
        this.netWorkName = netWorkName;
    }

    public int getNetWorkType() {
        return netWorkType;
    }

    public void setNetWorkType(int netWorkType) {
        this.netWorkType = netWorkType;
    }

    public String getNetWorkName() {
        return netWorkName;
    }

    public void setNetWorkName(String netWorkName) {
        this.netWorkName = netWorkName;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    //得到事件，的时间
    private Date date=new Date();
}
